import React, {Component} from "react";
import {inject, observer} from "mobx-react";
import {Tabs} from "antd";
import Worker from "./worker";
import Seed from "./seed";
import Columns from "./columns";

const {TabPane} = Tabs;

export default @inject('store') @observer
class Setting extends Component {
    constructor(props) {
        super(props);
        console.log(props)
    }

    render() {
        return <div>
            <Tabs defaultActiveKey={'1'}>
                <TabPane tab={'程序管理'} key={'1'}>
                    <Worker/>
                </TabPane>
                <TabPane tab={'排版管理'} key={'2'}>
                    <Columns/>
                </TabPane>
                <TabPane tab={'任务管理'} key={'3'}>
                    <Seed/>
                </TabPane>
            </Tabs>
        </div>
    }
}